<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="baidu-site-verification" content="wcMMFTPk07"/>
    <title></title>
    <script src="//cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
    <link href="//cdn.bootcss.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet">
    <script src="//cdn.bootcss.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
</head>
<body>

<div class="container">
    <div class="row">

        <div class="panel panel-default">
            <div class="panel-heading">
                请填写信息
            </div>
            <div class="panel-body">
                <form method="post" action="{:U('Home/Index/receiveUserInfo')} ">
                    <div class="form-group">
                        <label for="username">姓名：</label>
                        <input type="text" class="form-control" id="username" name="username" placeholder="姓名">
                    </div>
                    <div class="form-group">
                        <label for="phone">手机号：</label>
                        <input type="text" class="form-control" id="phone" name="phone" placeholder="手机号">
                    </div>
                    <div class="form-group">
                        <label for="smscode">手机验证码：</label>
                        <input type="text" class="form-control" id="smscode" name="smscode" placeholder="手机验证码"><button id="smscode_btn" class="btn btn-primary  ">点击发送</button>
                        <br/>
                        <br/>
                    </div>

                    <input type="submit" class="btn btn-default" value="提交"/>
                </form>
            </div>
        </div>
    </div>
</div>
<script>
    $(function(){
        $("#smscode_btn" ).click(function(e){
            e.preventDefault();
            $.post('url',{phone:$('#phone' ).val()},function(data){
                alert('调用短信接口')
            })
        })
    })
</script>
</body>
</html>
